<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h2>Hello World!</h2>
<a href="hello/world">测试HelloWorld</a>
<br><br>
<a href="hello/testPost">超链接的方式无法访问post连接</a>
<form action="hello/testPost" method="post">
	<input type="submit" value="通过Post方式可以进行访问">
</form>
<br><br>
<a href="hello/testParam">没有包含必要参数不能访问</a>
<br><br>
<a href="hello/testParam?name=张三&age=20">提供正确的参数可以进行访问</a>
<br><br>
<a href="hello/testheaders">根据Headers进行过滤</a>
<br><br>
<a href="hello/testant/abc/mill">根据通配符进行访问</a>
<br><br>
<a href="hello/tesPathVariable/张三/88">PathVariable注解url注入参数</a>
<br><br>
<a href="param/testRequestParam?username=lina&age=88">参数注入</a>
<br><br>
<a href="param/testRequestHeader">请求头注入</a>
<br><br>
<a href="param/testCookieValue">Cookie注入</a>
<br><br>
<a href="yuanSheng/testServletAPI">原生Api注入</a>
<br><br>
<a href="yuanSheng/testModelAndView">测试ModelAndView</a>
<br><br>
<a href="yuanSheng/testMap">测试testMap</a>
<br><br>
<a href="yuanSheng/testSession">测试testSession</a>
<br><br>
<a href="yuanSheng/testModelAtrribute?id=88">测试testModelAtrribute</a>
<br><br>
<a href="view/testView">测试自定义视图</a>
<br><br>
<a href="view/testRedirect">测试重定向</a>
<br><br>
<a href="view/testForward">测试转发</a>
<br><br>
<a href="view/testDateFormat?uName=zhangsan&birthDay=2019-8-22">测试类型转换</a>
<br><br>

<%--

id : Integer
userName : String
password : String
age : Integer
--%>

<form action="param/testPojo" method="post">
	<input type="hidden" name="_method" value="PUT"/>
	<input type="hidden" name="id" value="88"/>
	<input type="text" name="userName" value="张三"/>
	<input type="password" name="password" value="abc123"/>
	<input type="number" name="age" value="88"/>
	<!-- 级联属性注入 -->
	<input type="text" name="millUser.uName" value="奇迹"/>
	<input type="submit" value="TestPojo"/>
</form>
<br><br>

<form action="view/testConvert" method="post">
	<input type="text" value="mill-23" name="user">
	<input type="submit" value="Submit"/>
</form>

<form action="param/testRest/1" method="post">
	<input type="hidden" name="_method" value="PUT"/>
	<input type="submit" value="TestRest PUT"/>
</form>
<br><br>
	
</body>
</html>
